netfilter: nf_tables: GC transaction race with abort path
authorSasha Levin <sashal@kernel.org>
Fri, 22 Sep 2023 16:30:21 +0000 (18:30 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 29 Sep 2023 04:15:31 +0000 (05:15 +0100)
commite62a845729e0fe51211781f3936b6af00050cdff
tree9f78797d6c07786f0133e66c4a636f605555b099
parentd3649c77aa247cfe7d2a1220550e3c4c693370a3
netfilter: nf_tables: GC transaction race with abort path

commit 720344340fb9be2765bbaab7b292ece0a4570eae upstream.

Abort path is missing a synchronization point with GC transactions. Add
GC sequence number hence any GC transaction losing race will be
discarded.

Fixes: 5f68718b34a5 ("netfilter: nf_tables: GC transaction API to avoid race with control plane")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name netfilter-nf_tables-gc-transaction-race-with-abort-p.patch
net/netfilter/nf_tables_api.c